package ttu.eclass.util;

import java.io.IOException;

import ttu.takeshi.tasks.db.QueryTask;
import ttu.takeshi.tasks.db.UpdateTask;

public class DBConnector extends Connector{

	public DBConnector(String hostIP, int port) {
		super(hostIP, port);
	}
	public Object query(QueryTask queryTask) throws IOException, ClassNotFoundException{
		sendObject(queryTask);
		return getObject();
	}
	public void update(UpdateTask updateTask) throws IOException{
		sendObject(updateTask);
	}
}
